Run Tasks in Parallel

71

Run Tasks in Parallel -

IList<Cat> cats;
IList<Food> food;

Parallel.Invoke
(
    () => cats = GetAllTheCats(foo),
    () => food = GetAllTheFood(foo)
);

Comments

Submit
0 Comments